<template>
  <div class="login-container">
    <!-- 左侧插画区域 -->
    <div class="left-section">
      <div class="logo">
        <h1>云梦科技</h1>
      </div>
      <div class="illustration">
      </div>
    </div>

    <!-- 右侧登录表单区域 -->
    <div class="right-section">
      <div class="login-form">
        <div class="welcome-text">
          <h2>欢迎使用</h2>
          <h1>云梦智慧教育平台</h1>
        </div>

        <LoginForm />

        <div class="login-tips">
          <p>登录提示：</p>
          <p>1.若忘记账号密码请通过邮箱找回</p>
          <p>2.推荐使用 <span class="chrome-icon">🌐</span> Chrome浏览器进行浏览</p>
        </div>

        <div class="copyright">
          <p>Copyright © 2024 Yunmeng 云梦科技</p>
          <p>辽ICP备14003114号-8 🔗 辽公网安备 21021102000773号 工业和信息化部备案管理系统</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import LoginForm from './loginform'
</script>

<style scoped>
.login-container {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 左侧插画区域 */
.left-section {
  flex: 3;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #74b9ff 50%, #a29bfe 100%);
  overflow: hidden;
}

.logo {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 10;
}

.logo h1 {
  font-size: 32px;
  font-weight: bold;
  color: #2c5aa0;
  margin: 0;
}

.illustration {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("../../assets/login.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* 右侧登录表单区域 */
.right-section {
  flex: 2;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form {
  width: 100%;
  max-width: 400px;
}

.welcome-text {
  text-align: center;
  margin-bottom: 40px;
}

.welcome-text h2 {
  font-size: 28px;
  color: #666;
  margin: 0 0 10px 0;
  font-weight: normal;
}

.welcome-text h1 {
  font-size: 38px;
  color: #2c5aa0;
  margin: 0;
  font-weight: bold;
}


.login-tips {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
  margin-top: 30px;
  margin-left: 70px;
}

.login-tips p {
  margin: 5px 0;
}

.chrome-icon {
  font-size: 14px;
}

.copyright {
  font-size: 11px;
  color: #999;
  text-align: center;
  line-height: 1.5;
  margin-top: 80px;
}

.copyright p {
  margin: 2px 0;
}

</style>